import { LocalstorageDataManage } from './../localstoreage/localstoreageDataManage';
import { prefixHttp } from './prefix-http';
const model = "fbs";
const host = LocalstorageDataManage.current.getLDCConfig() && LocalstorageDataManage.current.getLDCConfig().host;
const storeid = LocalstorageDataManage.current.getStore() && LocalstorageDataManage.current.getStore().id;
export const cloundHttpServer = prefixHttp('http://localhsot:8887', {})
export const fbsPort = location.protocol.indexOf("https") > -1 ? 8886 : 8887;
export const LDCHttpServer = prefixHttp("//" + host + `:${fbsPort}`, { headers: { storeid } });
export const CDCHttpServer = prefixHttp('http://ldc', {})
export const businsessHttpServer = model == "fbs" ? LDCHttpServer : CDCHttpServer;

